package net.cyan.commons.aop.aspect;

import net.cyan.commons.util.ObjectFactory;

/**
 * 
 * @author camel
 * @date 2008-6-7
 */
public class AspectFactory implements ObjectFactory<Aspect>
{
    private Advice advice;

    private Pointcut pointcut;

    public AspectFactory()
    {
    }

    public Aspect create()
    {
        return new Aspect(advice, pointcut);
    }

    public Advice getAdvice()
    {
        return advice;
    }

    public void setAdvice(Advice advice)
    {
        this.advice = advice;
    }

    public Pointcut getPointcut()
    {
        return pointcut;
    }

    public void setPointcut(Pointcut pointcut)
    {
        this.pointcut = pointcut;
    }
}
